package com.zrgj.ctrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test")
public class TestCtrl {

    @RequestMapping("/show")
    protected ModelAndView show(String name){
        ModelAndView mv=new ModelAndView("index");
        System.out.println("hello world!");
        mv.addObject("mgr","传递数据");
        mv.addObject("name",name);
        return mv;
    }
}
